﻿using System;
using System.Runtime.Serialization;

namespace AsyncLoggers.Exceptions
{
    /// <summary>
    /// Thrown when attempt to swap a logger for an
    /// asynchronous version fails
    /// </summary>
    [Serializable]
    public class FailedToSwapLoggerException : Exception
    {
        /// <summary>
        /// Thrown when attempt to swap logger for an
        /// asynchronous version fails
        /// </summary>
        public FailedToSwapLoggerException()
        {
        }

        /// <summary>
        /// Thrown when attempt to swap logger for an
        /// asynchronous version fails
        /// </summary>
        public FailedToSwapLoggerException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Thrown when attempt to swap logger for an
        /// asynchronous version fails
        /// </summary>
        public FailedToSwapLoggerException(string message, Exception inner)
            : base(message, inner)
        {
        }

        /// <summary>
        /// Thrown when attempt to swap logger for an
        /// asynchronous version fails
        /// </summary>
        protected FailedToSwapLoggerException(
            SerializationInfo info,
            StreamingContext context)
            : base(info, context)
        {
        }
    }
}